<?php

//$mode = '';
$mode = 'debug';
//$mode = 'product';

$path = 'js/';
$cdn_path = 'js/';
//$cdn_path = 'http://img.tvb.com/pdes/js/';
$red_path = 'red/';

switch ($mode) {
    case 'product':
        echo <<<JS
        <script src="{$cdn_path}pms-all.min.js" type="text/javascript"></script>
JS;
    break;
    case 'debug':
    default:
        echo <<<JS
        <script src="{$path}jquery-1.4.2.js" type="text/javascript"></script>
        <script src="{$path}jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
        <script src="{$path}json2.js" type="text/javascript"></script>
        <script src="{$path}jquery.maskedinput-1.2.2.min.js" type="text/javascript"></script>
        <script src="{$path}swfobject.js"></script>
        <script src="{$path}tvb-utils.js" type="text/javascript"></script>

        <!-- table grid lib 3.6.2 -->
        <script src="{$path}jquery.jqgrid-3.6.2.js" type="text/javascript"></script>

        <!-- Dependency file for autocomplete lib -->
        <script src="{$path}jquery.bgiframe.min.js" type="text/javascript"></script>
        <script src="{$path}jquery.ajaxQueue.js" type="text/javascript"></script>
        <script src="{$path}thickbox-compressed.js" type="text/javascript"></script>
        <!-- autocomplete lib -->
        <script src="{$path}jquery.autocomplete.js" type="text/javascript"></script>

        <!-- form validation lib -->
        <script src="{$path}jquery.validate.js" type="text/javascript"></script>

        <script src="{$path}swfobject_v2.js" type="text/javascript"></script>
        <script src="{$path}red.js" type="text/javascript"></script>
        <script src="{$path}jquery-laughing.js" type="text/javascript"></script>
        <script src="{$path}cms-generic.js" type="text/javascript"></script>
        <script src="{$path}pms-init.js" type="text/javascript"></script>
JS;
    break;
}
?>
